<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@ include file= "../header.jsp" %>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>添加数据库配置信息</title>
<link href="/css/becom.css" rel="stylesheet" type="text/css"/>
</head>
<body>
 <p align="center">数据库配置信息 (<a href="/db/pUpdate.do?id=${bean.id}">update</a>)</p>
    <table width="100%">
       <tr>
           <td>id</td><td>${bean.id }</td>
       </tr>
       <tr>
           <td>ip</td><td>${bean.ip }</td>
       </tr>
       <tr>
           <td>port</td><td>${bean.port }</td>
       </tr>
       <tr>
           <td>dbName</td><td>${bean.dbName }</td>
       </tr>
       <tr>
           <td>username</td><td>${bean.username }</td>
       </tr>
       <tr>
           <td>password</td><td>${bean.password }</td>
       </tr>
       <tr>
           <td>jdbcTemplateName</td><td>${bean.jdbcTemplateName }</td>
       </tr>
       
       <tr>
           <td>basePath</td><td>${bean.basePath }</td>
       </tr>
       <tr>
           <td>packagePath</td><td>${bean.packagePath }</td>
       </tr>
       <tr>
           <td>creater</td><td>${bean.creater }</td>
       </tr>
       
    </table>
    
    <p align="center">数据库表信息</p>
    <table width="100%">
    <tr class="title">
       <td width="50%">tableName</td>
       <td width="50%">operate</td>
    </tr>
    <c:forEach items="${list}" var="item">
		<tr>
			<td>${item.tableName}</td>
			<td>
			   <a href="/table/config.do?dbId=${bean.id }&tableName=${item.tableName}">config</a> 
			   
			</td>
		</tr>
	</c:forEach>
	 </table>
</body>
</html>